<?php  if ($this->pageCount>1):
//$arrGet=Zend_Controller_Front::getInstance()->getRequest()->getParams(); 
$arrGet=Zend_Controller_Front::getInstance()->getRequest()->getQuery();
foreach ($arrGet as $key=>$item){
    if ($item=='') unset ($arrGet[$key]);
}
unset($arrGet['page']);
?>

<div class="linkPage clearfix">
<p class="page">Trang:</p>    
        
    <ul class="clearfix">
        <!-- Begin numbered page links -->
        <?php foreach ($this->pagesInRange as $page): ?>
            <?php if ($page != $this->current):
                    unset($arrGet['page']);
                    $arrGet = array_merge($arrGet, array('page' => $page));                    
            ?>
            	<li >
	                <a href="<?php echo $this->url($arrGet); ?>">
						<?php echo $page?>
                    </a>
                </li>    
            <?php else: ?>
            	<li><a class="active"><?php echo $page; ?></a></li>
            <?php endif; ?>
        <?php endforeach; ?>
       <!-- End numbered page links -->
        
    </ul>
    
    <!-- Begin next page link -->
      	<?php if (isset($this->next)): 
                unset($arrGet['page']);
                $arrGet = array_merge($arrGet, array('page' => $this->next));
          ?>
			<p class="nextpage">
            	<a title="Next" href="<?= $this->url($arrGet); ?>">
                	Next &raquo;
                </a>
            </p>
        <?php else: ?>
            <p class="nextpage">Next</p>
        <?php endif; ?>    
	<!-- End next page link -->
        
</div>  
<?php endif; ?>